package com.baizhi.service.impl;

import com.baizhi.config.redis.AddCacheAnnotation;
import com.baizhi.config.log.LogAnnotation;
import com.baizhi.entity.Menu;
import com.baizhi.mapper.MenuMapper;
import com.baizhi.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;
    @AddCacheAnnotation
    @LogAnnotation(content = "模块展示",type = "select")
    public List<Menu> selecyAll() {
        List<Menu> menus = menuMapper.selectAll();
        return menus;
    }
}
